import request from '@/utils/request'

// 查询法律诉讼列表
export function listCompanyLegalAction(query) {
  return request({
    url: '/action/companyLegalAction/list',
    method: 'get',
    params: query
  })
}

// 查询法律诉讼详细
export function getCompanyLegalAction(id) {
  return request({
    url: '/action/companyLegalAction/' + id,
    method: 'get'
  })
}

// 保存法律诉讼
export function saveCompanyLegalAction(data) {
  return request({
    url: '/action/companyLegalAction/save',
    method: 'post',
    data: data
  })
}

// 删除法律诉讼
export function delCompanyLegalAction(id) {
  return request({
    url: '/action/companyLegalAction/' + id,
    method: 'delete'
  })
}

// 导出法律诉讼
export function exportCompanyLegalAction(query) {
  return request({
    url: '/action/companyLegalAction/export',
    method: 'get',
    params: query
  })
}
